Revert "wayland: Make popups work more than once"
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 May 2019 16:50:49 +0000 (16:50 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 19 May 2019 16:50:49 +0000 (16:50 +0000)
This reverts commit e74c655016982272b72dff318b11602b0d5b099a.

gdk/wayland/gdksurface-wayland.c

index 72622e01708095880ae3a9469db5864733328733..c192c3b09d4c1a0b1862fbf4e9efeb7989821253 100644 (file)
@@ -2514,16 +2514,12 @@ gdk_wayland_surface_map (GdkSurface *surface)
   impl->mapped = TRUE;
 }
 
-static void gdk_wayland_surface_destroy_surface (GdkSurface *surface);
-
 static void
 gdk_wayland_surface_show (GdkSurface *surface,
                           gboolean    already_mapped)
 {
   GdkSurfaceImplWayland *impl = GDK_SURFACE_IMPL_WAYLAND (surface->impl);
 
-  gdk_wayland_surface_destroy_surface (surface);
-
   if (!impl->display_server.wl_surface)
     gdk_wayland_surface_create_surface (surface);